#include <iostream>
#include<windows.h>

extern "C" {
#include "MxzxAudioLib.h"

}

// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
int main() {
    //中文乱码处理
    system("chcp 65001 > nul");
    // // TIP Press <shortcut actionId="RenameElement"/> when your caret is at the
    // // <b>lang</b> variable name to see how CLion can help you rename it.
    // auto lang = "C++";
    // std::cout << "Hello and welcome to " << lang << "!\n";
    //
    // for (int i = 1; i <= 5; i++) {
    //     // TIP Press <shortcut actionId="Debug"/> to start debugging your code.
    //     // We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/>
    //     // breakpoint for you, but you can always add more by pressing
    //     // <shortcut actionId="ToggleLineBreakpoint"/>.
    //     std::cout << "i = " << i << std::endl;
    // }
    printf("测试ffmpeg version:%s\n",av_version_info());
    const char *mp3FilePath = "E:/ClionCode/ffmpegTest/examples/abc.mp3";
    const char *wavOutFileDir = "E:/ClionCode/ffmpegTest/examples/";
    mp3ToWav(mp3FilePath,wavOutFileDir);
    return 0;
}

// TIP See CLion help at <a
// href="https://www.jetbrains.com/help/clion/">jetbrains.com/help/clion/</a>.
//  Also, you can try interactive lessons for CLion by selecting
//  'Help | Learn IDE Features' from the main menu.